home *** CD-ROM | disk | FTP | other *** search
- #include<hold/anim.h>
-
- /* 000 */ void while_control(void){
- /* 001 */ int guard = 4;
- /* 002 */ int count = 0;
-
- a_func("while_control",0);
- a_intini(guard,"guard",1);
- a_intini(count,"count",2);
- a_intcomp("count<4",3);
- /* 003 */ while(count<4){
- /* 004 */ guard--;
- a_intass("guard","guard-1",4);
- /* 005 */ count++;
- a_intass("count","count+1",5);
- a_intcomp("count<4",3);
- /* 006 */ }
- a_intcomp("count>3",7);
- /* 007 */ while(count>3){
- /* 008 */ guard++;
- a_intass("guard","guard+1",8);
- /* 009 */ count--;
- a_intass("count","count-1",9);
- a_intcomp("count>3",7);
- /* 010 */ }
- a_intcomp("count",11);
- /* 011 */ while(count){
- /* 012 */ guard++;
- a_intass("guard","guard+1",12);
- /* 013 */ count--;
- a_intass("count","count-1",13);
- a_intcomp("count",11);
- /* 014 */ }
- a_endfunc("while_control",15);
- /* 015 */ }
-